# import pandas as pd
#
# file_path = "中小学生心理测量问卷.xlsx"
#
# df = pd.read_excel(file_path)
# print(df.columns)
#
# # for column in df.columns:
# #     print(f"{column}:", df.iloc[0][column])
#
#
# # 提取“维度名称”和“评分解释”列
# dimensions = df['维度名称'].dropna().tolist()
# score_explanations = df['评分解释'].dropna().tolist()
# suggestion = df['建议'].dropna().tolist()
# print("dimensions", dimensions)
# print("score_explanations", score_explanations)
# print("suggestion", suggestion)
#
# # # 打印结果
# # for i, (dim, explanation) in enumerate(zip(dimensions, score_explanations), start=1):
# #     print(f"维度 {i}：\n{dim.strip()}\n评分解释：\n{explanation.strip()}\n{'-' * 50}")

import requests

url = "http://127.0.0.1:8088/process/"  # 请替换为实际的 API 地址
headers = {
    "Content-Type": "application/json"
}
data = {
    "message": "我最近有点烦躁，不想学习"
}

response = requests.post(url, json=data, headers=headers)

print("Status Code:", response.status_code)
print("Response Body:", response.json())

